﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ue.CQRS.Samples.Application.Query.Services;

namespace Ue.CQRS.Samples.UI
{
    public partial class Books : Ue.CQRS.Samples.UI.AppCode.PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                books.DataSource = BookService.Instance.FindAll();
                books.DataBind();
            }
        }
    }
}